#include <stdio.h>

int main() {
    int i;
    scanf("%d", &i);
    int a[i];
    for (int j = 0; j < i; j++)
        scanf("%d", &a[j]);
    int b[i];
    for (int n = 1; n < i; n++)
    {
        for (int m = 0; m < i - n; m++)
        {
            if (a[m] > a[m + 1])
            {
                int temp = a[m];
                a[m] = a[m + 1];
                a[m + 1] = temp;
            }
        }
    }
    b[0] = a[0];
    int sum = 0;
    for (int h = 1; h < i; h++)
    {

        if (a[h - 1] == a[h])
            continue;
        else
        {
            sum++;
            b[sum] = a[h];

        }
    }

    for (int r = 0; r <= sum; r++)
    {
        printf("%d ", b[r]);
    }
    return 0;
}